<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2016/10/11
 * Time: 8:39
 */
?>
<html>
<head>
    <meta charset="UTF-8">
<title>双色球</title>
    <style>
       figure{display: block;background: black;border-radius: 50%;height: 30px;line-height: 30px;width: 30px;  }
        .red{background: -webkit-radial-gradient(10px  10px,circle,#f00,#000);
              background:-moz-radial-gradient(10px  10px,circle,#f00,#000);
              background:-ms-radial-gradient(10px  10px,circle,#f00,#000);
              background:radial-gradient(10px  10px,circle,#f00,#000);}
        .blue{background: -webkit-radial-gradient(10px  10px,circle,#0000ff,#000);
            background:-moz-radial-gradient(10px  10px,circle,#0000ff,#000);
            background:-ms-radial-gradient(10px  10px,circle,#0000ff,#000);
            background:radial-gradient(10px  10px,circle,#0000ff,#000);}
    </style>
</head>
<body>
<?php
$red_num=range(1,33);
$keys=array_rand($red_num,6);
shuffle($keys);
foreach ($keys as $v){
$red[]=$red_num[$v]<10 ?('0'.$red_num[$v]):$red_num[$v];}
$blue_num=rand(1,16);
$blue=$blue_num<10?('0'.$blue_num):$blue_num;
foreach ($red as $v){
    echo $v .'';}
echo $blue;
?>
</body>
</html>
